<template>
	<view class="good-list">
		<view v-for="(item,index) in data" :key="index">
			<one-adv v-if="item.cover" :data="item.cover"/>
			<template v-if="item.goodlist">
				<card-list :data="item.goodlist"/>
			</template>
			<navTitle v-if="item.title" :msg="item.title" />
			<dividerline/>
		</view>

	</view>
</template>

<script>
	export default {
		name: "goodlist",
		props: {
			data: {
				type: Array,
				default: []
			}
		},
		components: {
			oneAdv: () => import('@/components/oneAdv/oneAdv.vue'),
			dividerline: () => import('@/components/dividerLine/dividerLine.vue'),
			cardList: () => import('@/components/card-list/card-list.vue'),
			navTitle: () => import('@/components/title/title.vue'),
		},
		computed: {

		}
	}
</script>

<style lang="scss">

</style>
